import React from 'react';
import {
    View,
    requireNativeComponent,
} from 'react-native';
const RCTMathView = requireNativeComponent('RCTLatexView');

class RichTextView extends React.Component {

    _onLayout = (e) => {
        console.log('_onLayout', e.nativeEvent.layout);
    };

    render() {
        const {math} = this.props;
        return (
            <View style={{backgroundColor:'green',padding:20}}>
                <RCTMathView math={math} onLayout={this._onLayout}/>
            </View>
        );
    }
}


export default RichTextView;
